package hk.service.impl;

import hk.beans.Payment;
import hk.mapper.PaymentMapper;
import hk.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @version 1.0
 * @Author YangJiaQuan_hrbnu
 * @Date 2024/3/12 23:19
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentMapper paymentMapper;

    public void addPayment(Payment payment) {
        paymentMapper.addPayment(payment);
    }

    public Payment getPaymentById(Integer id) {
        return paymentMapper.getPaymentById(id);
    }
}
